import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/home/Home.vue')
  },
  {
    path: '/shop',
    name: 'Shop',
    component: () => import('../views/shop/Shop.vue')
  },
  {
    path: '/cash',
    name: 'Cash',
    component: () => import('../views/cash/Cash.vue')
  },
  {
    path: '/task',
    name: 'Task',
    component: () => import('../views/task/Task.vue')
  },
  {
    path: '/message',
    name: 'MessageCenter',
    component: () => import('../views/message/MessageCenter.vue')
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;